(function () {
    angular.module('app')
        .component('xxToolbar',{
            templateUrl:'./app/common/toolbar/toolbar.html',
            controller:ctrl
        });

    function ctrl($scope,$state,$mdSidenav,ToolbarFactory) {
        $scope.toggleLeft = buildToggler('left');
        function buildToggler(componentId) {
            return function() {
                $mdSidenav(componentId).toggle();
            };
        }

    }
})();
